package dao;

/**
 * AbstractShipperId entity provides the base persistence definition of the
 * ShipperId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractShipperId implements java.io.Serializable {

	// Fields

	private Integer shipperid;
	private User user;

	// Constructors

	/** default constructor */
	public AbstractShipperId() {
	}

	/** full constructor */
	public AbstractShipperId(Integer shipperid, User user) {
		this.shipperid = shipperid;
		this.user = user;
	}

	// Property accessors

	public Integer getShipperid() {
		return this.shipperid;
	}

	public void setShipperid(Integer shipperid) {
		this.shipperid = shipperid;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractShipperId))
			return false;
		AbstractShipperId castOther = (AbstractShipperId) other;

		return ((this.getShipperid() == castOther.getShipperid()) || (this
				.getShipperid() != null
				&& castOther.getShipperid() != null && this.getShipperid()
				.equals(castOther.getShipperid())))
				&& ((this.getUser() == castOther.getUser()) || (this.getUser() != null
						&& castOther.getUser() != null && this.getUser()
						.equals(castOther.getUser())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getShipperid() == null ? 0 : this.getShipperid().hashCode());
		result = 37 * result
				+ (getUser() == null ? 0 : this.getUser().hashCode());
		return result;
	}

}